<?php

$uhetConfig = array(

	'autor' => 'Eder Ruiz Maria',
	'db'    => array(
		'host'     => 'localhost',
		'usuario'  => 'uhet',
		'senha'    => 'uhet',
		'database' => 'uhet'
	),
	'lib'  => array(
		'base'                    => dirname(__FILE__) . '/../lib/uhet/',
		'controller'              => dirname(__FILE__) . '/../lib/uhet/controller.php',
		'controller_dir'          => dirname(__FILE__) . '/controller/',
		'controller_class_prefix' => 'controller',
		'controller_file_prefix'  => 'controller',
		'dao'                     => dirname(__FILE__) . '/../lib/uhet/dao.php',
		'dao_dir'                 => dirname(__FILE__) . '/dao/',
		'dao_name_prefix'         => 'dao',
		'object'                  => dirname(__FILE__) . '/../lib/uhet/object.php',
		'object_dir'              => dirname(__FILE__) . '/object/',
		'object_class_prefix'     => 'object',
		'object_file_prefix'      => 'object',
		'uhet'                    => dirname(__FILE__) . '/../lib/uhet/uhet.php',
		'view'                    => dirname(__FILE__) . '/../lib/uhet/view.php',
		'view_dir'                => dirname(__FILE__) . '/view/',
		'view_name_prefix'        => 'view',
		'view_class_prefix'       => 'view',
		'view_file_prefix'        => 'view',
	),
	'smarty' => array(
		'dir'      => dirname(__FILE__).'/../lib/smarty/',
		'compile'  => dirname(__FILE__).'/../lib/smarty/templates_c',
		'config'   => dirname(__FILE__).'/../lib/smarty/configs',
		'cache'    => dirname(__FILE__).'/../lib/smarty/cache',	
		'template' => dirname(__FILE__).'/view/templates',
	),
);

if (!defined('UHET')) {
	
	define('UHET',                    $uhetConfig['lib']['uhet']);
	
	define('CONTROLLER',              $uhetConfig['lib']['controller']);
	define('CONTROLLER_DIR',          $uhetConfig['lib']['controller_dir']);
	define('CONTROLLER_CLASS_PREFIX', $uhetConfig['lib']['controller_class_prefix']);
	define('CONTROLLER_FILE_PREFIX',  $uhetConfig['lib']['controller_file_prefix']);
	
	define('OBJECT',                  $uhetConfig['lib']['object']);
	define('OBJECT_DIR',              $uhetConfig['lib']['object_dir']);
	define('OBJECT_CLASS_PREFIX',     $uhetConfig['lib']['object_class_prefix']);
	define('OBJECT_FILE_PREFIX',      $uhetConfig['lib']['object_file_prefix']);
	
	define('VIEW',                    $uhetConfig['lib']['view']);
	define('VIEW_DIR',                $uhetConfig['lib']['view_dir']);
	define('VIEW_CLASS_PREFIX',       $uhetConfig['lib']['view_class_prefix']);
	define('VIEW_FILE_PREFIX',        $uhetConfig['lib']['view_file_prefix']);
	
	define('DAO',                     $uhetConfig['lib']['dao']);
	define('DAO_DIR',                 $uhetConfig['lib']['dao_dir']);
	define('DAO_NAME_PREFIX',         $uhetConfig['lib']['dao_name_prefix']);
	
	define('SMARTY_DIR',              $uhetConfig['smarty']['dir']);
}
?>